/**
 * @Copyright: Interactive Business Solution Pte Ltd, Singapore
 * @Author: Li Wen, 2007-11-20
 * @Version: 071221.002
 * Model class for system environment, following properties are required
 * id, serverAddr, userAcc, pwd, level, salesmanPhoto, xmlTree, updateTime
 */
package com.ibsol.model
{
	[Bindable]
	public class SystemEnv
	{
		private var _id:int;
		private var _uid:int;
		private var _serverAddr:String;
		private var _acc:String;
		private var _pwd:String;
		private var _level:uint;
		private var _photo:String;
		private var _updateTime:String;
		private var _xmlTree:String;
		//User level
		public static const ADMIN:uint = 0;
		public static const MANAGER:uint = 1;
		public static const SALESMAN:uint = 2;
		/**
		 * Default constructor of System
		 */
		public function SystemEnv()
		{
			_id = 1;
			_uid = 0;
			_serverAddr = "";
			_acc = "";
			_pwd = "";
			_level = SALESMAN;
			_photo = "";
			_updateTime = "";
			_xmlTree = "";
		}
		
		public function set id(value:int):void
		{
			this._id = value;
		}
		
		public function set uid(value:int):void{
			this._uid = value;
		}
		
		public function set serverAddr(value:String):void{
			this._serverAddr = value;
		}
		
		public function set acc(value:String):void{
			this._acc = value;
		}
		
		public function set pwd(value:String):void{
			this._pwd = value;
		}
		
		public function set level(value:uint):void{
			this._level = value;
		}
		
		public function set photo(value:String):void{
			this._photo = value;
		}
		
		public function set updateTime(value:String):void{
			this._updateTime = value;
		}
		
		public function set xmlTree(value:String):void{
			this._xmlTree = value;
		}
		
		public function get uid():int{
			return this._uid;
		}
		
		public function get serverAddr():String{
			return this._serverAddr;
		}
		
		public function get acc():String{
			return this._acc;
		}
		
		public function get pwd():String{
			return this._pwd;
		}
		
		public function get level():uint{
			return this._level;
		}
		
		public function get photo():String{
			return this._photo;
		}
		
		public function get updateTime():String{
			return this._updateTime;
		}
		
		public function get xmlTree():String{
			return this._xmlTree;
		}
		
		public function get id():int
		{
			return this._id;
		}
	}
}